#ifndef MYIMAGEPROVIDER_H
#define MYIMAGEPROVIDER_H

#include <QQuickImageProvider>
#include "geturlimage.h"
class QNetworkAccessManager;

class MyImageProvider : public QQuickImageProvider
{
public:
    MyImageProvider(ImageType type, Flags flags = 0);
    ~MyImageProvider();
    QPixmap requestPixmap(const QString & id, QSize * size, const QSize & requestedSize);
    getUrlImage myGetUrlImage;
protected:
    QNetworkAccessManager *manager;
};

#endif // MYIMAGEPROVIDER_H
